package com.cloudalibabaopenfeign8087.controller;

import com.cloudalibabacomment8001.entity.JsonResult;
import com.cloudalibabaopenfeign8087.service.OpenFeignService;
import org.bouncycastle.jcajce.provider.symmetric.Threefish;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description: TODO
 * @Author zx
 * @Date 2024/11/26 20:33
 * @Version 1.0
 */
@RestController
public class OpenFeignController {

    @Resource
    private OpenFeignService openFeignService;

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/infoOpenFeign/{id}")
    public JsonResult<String> msbSql(@PathVariable("id") Long id) {
        return openFeignService.msbSql(id);
    }

    @GetMapping("/timeOut/{id}")
    public JsonResult<String> timeOut(@PathVariable("id") Long id) {
        return openFeignService.timeOut(id);
    }

}
